package com.huilian.iotbox.client;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.retry.annotation.EnableRetry;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.client.RestTemplate;

/**
 * @Author: yjzhang
 * @Date: 2020/11/24 17:40
 * @Description:
 */
@EnableRetry
@SpringBootApplication
@EnableTransactionManagement
@ComponentScan({"com.huilian"})
@MapperScan({"com.huilian.iotbox.data.dao", "com.huilian.iotbox.client.dao", "com.huilian.iotbox.client.activity.dao"})
@EnableScheduling
public class ClientApplication {
    public static void main(String[] args) {
        SpringApplication.run(ClientApplication.class, args);
    }

    @Bean
    RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
